﻿ 
namespace Core.Items.Modules
{
    /*

		MetaGroup                      = ElectronicEquipment
		Group                          = RangeExtenders
		Module                         = atcs-gh50 range extender prototype
		CpuUsage                       = 38.00 TF
		ReactorUsage                   = 119.00 RP
		Type                           = Passive
		Slot                           = Head
		TechnologicalLevel             = T4P
		Mass                           = 37.50 kg
		PackedVolume                   = 0.05 U
		Volume                         = 0.10 U
		OptimalRangeModifier           = 15 %
    */

    using System;
    using Base;
    using Contracts.Enums;
    using Contracts.Interfaces;
    using Extensions;
    using Features;
    
    /// <summary>
    /// ATCS-gh50 range extender prototype module class
    /// </summary>
    /// <remarks>File generated on 31/10/2011 16:00:54</remarks>
    public sealed class AtcsGh50RangeExtenderPrototype : ModuleBase
    {
        /// <summary>
        /// Create a new instance of the <see cref="AtcsGh50RangeExtenderPrototype"/> class.
        /// </summary>
        public AtcsGh50RangeExtenderPrototype()
            : base(
            "ATCS-gh50 range extender prototype",
            "",
            ModuleMetaGroupsEnum.ElectronicEquipment,
            ModuleGroupsEnum.RangeExtenders,
            TechnologyLevelsEnum.Level4|TechnologyLevelsEnum.Prototype,
            SizesEnum.Small,
            new LazyFeature[] { 
				new LazyFeature(typeof(CpuUsage<double>),38.00),
				new LazyFeature(typeof(ReactorUsage<double>),119.00),
				new LazyFeature(typeof(ModuleMass<double>),37.50), },
            null,
            new IModifier[] { 
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.RobotMass, 37.50 ){ IsVisible = false },
				new Modifier( FeatureTypesEnum.Module, FeaturesEnum.SmallMagneticWeaponOptimal, 0.15 ){ Unit = UnitsEnum.Percentage, DisplayName = "Small Magnetic weapon optimal" },
				new Modifier( FeatureTypesEnum.Module, FeaturesEnum.MediumMagneticWeaponOptimal, 0.15 ){ Unit = UnitsEnum.Percentage, DisplayName = "Medium Magnetic weapon optimal" },
				new Modifier( FeatureTypesEnum.Module, FeaturesEnum.SmallFirearmOptimal, 0.15 ){ Unit = UnitsEnum.Percentage, DisplayName = "Small Firearm optimal" },
				new Modifier( FeatureTypesEnum.Module, FeaturesEnum.MediumFirearmOptimal, 0.15 ){ Unit = UnitsEnum.Percentage, DisplayName = "Medium Firearm optimal" },
				new Modifier( FeatureTypesEnum.Module, FeaturesEnum.SmallLaserOptimal, 0.15 ){ Unit = UnitsEnum.Percentage, DisplayName = "Small Laser optimal" },
				new Modifier( FeatureTypesEnum.Module, FeaturesEnum.MediumLaserOptimal, 0.15 ){ Unit = UnitsEnum.Percentage, DisplayName = "Medium Laser optimal" },
				new Modifier( FeatureTypesEnum.Ammo, FeaturesEnum.MissileOptimal, 0.15 ){ Unit = UnitsEnum.Percentage, DisplayName = "Missile optimal" }, } )
        {
        }

        /// <summary>
        /// Obtains the activation type
        /// </summary>
        public override ModuleActivationTypesEnum ActivationType
        {
            get { return ModuleActivationTypesEnum.Passive; }
        }
        /// <summary>
        /// Obtains the module slot group 
        /// </summary>
        public override SlotGroupsEnum SlotGroup
        {
            get { return SlotGroupsEnum.Head; }
        }
        /// <summary>
        /// Obtains the module slot type 
        /// </summary>
        public override SlotTypesEnum SlotType
        {
            get { return SlotTypesEnum.Modules; }
        }
    }
}